import antfu from '@antfu/eslint-config'
import nuxt from './.nuxt/eslint.config.mjs'

export default nuxt(
  antfu({
    unocss: false,
    vue: true,
    typescript: true,
    stylistic: {
      indent: 2, // 2 | 4 | 'tab'
      quotes: 'single', // 'single' | 'double' | 'backtick'
      semi: false, // true | false
    },
    formatters: {
      css: true,
      html: true,
      markdown: 'prettier',
    },
    rules: {
      // 可选值：'1tbs' | 'stroustrup' | 'allman'
      'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
      // 按需省略花括号与 return
      'arrow-body-style': ['error', 'as-needed'],
      'vue/no-multiple-template-root': ['off'],
    },
  }),
)
